import type { Situation } from "@/models/situation";
import request from "@/utils/request";

// 条目列表
export async function courseItemList(params?: Situation) {
  return request('/teach-admin/admin/courseItem/list', {
    method: 'POST',
    data: params
  });
}
// 环节列表
export async function courseStepList(params?: Situation) {
  return request('/teach-admin/admin/courseStep/list', {
    method: 'POST',
    data: params
  });
}
// 条目-课堂数据
export async function classroomDataList(params?: Situation) {
  return request('/teach-admin/admin/classroomData/list', {
    method: 'POST',
    data: params
  });
}
// 条目-互动视频课
export async function interactivePlaybackList(params?: Situation) {
  return request('/teach-admin/admin/interactivePlayback/list', {
    method: 'POST',
    data: params
  });
}
// 条目-动画课
export async function userCourseAnimationList(params?: Situation) {
  return request('/teach-admin/admin/userCourseAnimation/data/list', {
    method: 'POST',
    data: params
  });
}
// 条目-录像课
export async function videoCourseDataList(params?: Situation) {
  return request('/teach-admin/admin/videoCourse/data/list', {
    method: 'POST',
    data: params
  });
}
// 条目-练习题列表
export async function gamePaperUserDataList(params?: Situation) {
  return request('/teach-admin/admin/gamePaperUser/data/list', {
    method: 'POST',
    data: params
  });
}
// 条目-末次答题
export async function gamePaperUserLast(params?: Situation) {
  return request('/teach-admin/admin/gamePaperUser/last', {
    method: 'POST',
    data: params
  });
}
// 条目导出
export async function courseItemExport(params?: Situation) {
  return request('/teach-admin/admin/file/initUploadFile', {
    method: 'POST',
    data: params
  });
}
// 详情
export async function courseItemInfo(params?: Situation) {
  return request('/teach-admin/admin/courseItem/info', {
    method: 'POST',
    data: params
  });
}
// 棋灵对弈列表
export async function playGameList(params?: Situation) {
  return request('/teach-admin/admin/playGame/data/list', {
    method: 'POST',
    data: params
  });
}
// 棋灵对弈导出
export async function gokuGameDataExport(params?: any) {
  return request('/teach-admin/admin/gokuGame/data/export', {
    method: 'POST',
    responseType: 'blob',
    data: params
  });
}
// 悟空对弈导出
export async function playGameDataExport(params?: any) {
  return request('/teach-admin/admin/playGame/data/export', {
    method: 'POST',
    responseType: 'blob',
    data: params
  });
}


// 棋灵对弈数据列表
export async function playGameChessList(params?: Situation) {
  return request('/teach-admin/admin/playGame/list', {
    method: 'POST',
    data: params
  });
}
// 悟空对弈数据列表
export async function gokuGameDataList(params?: Situation) {
  return request('/teach-admin/admin/gokuGame/data/list', {
    method: 'POST',
    data: params
  });
}

// 悟空对弈棋谱数据列表
export async function gokuGameList(params?: Situation) {
  return request('/teach-admin/admin/gokuGame/list', {
    method: 'POST',
    data: params
  });
}
// 棋灵探险列表页
export async function gameLessonList(params?: Situation) {
  return request('/teach-admin/admin/gameLesson/list', {
    method: 'POST',
    data: params
  });
}
// 悟空对弈操作
export async function userGameStatList(params?: Situation) {
  return request('/teach-admin/admin/gokuGame/data/list', {
    method: 'POST',
    data: params
  });
}
// 棋灵探险导出
export async function gameLessonExport(params?: any) {
  return request('/teach-admin/admin/gameLesson/export', {
    method: 'POST',
    responseType: 'blob',
    data: params
  });
}
// 依据手机号/昵称搜索
export async function accurateSearchUser(params: Situation) {
  return request('/teach-admin/admin/user/fuzzySearchUser', {
    method: 'GET',
    params: params,
  });
}

// 班级下拉列表
export async function groupOptionList(params?: Situation) {
  return request('/teach-admin/admin/group/option/list', {
    method: 'POST',
    data: params
  });
}
